public class 数组平均数 {
    public static void main(String[] args) {
        int[] students={72,89,65,58,87,91,53,82,71,93,76,68};
        Arr_average(students);
    }
    public static int[] Arr_average(int[] arr){
        double sum=0;
        double average;
        for (int i = 0; i < arr.length ; i++) {
            sum+=arr[i];
        }
        average=sum/arr.length;
        System.out.println(String.format("平均数是:%.2f",average));
        return arr;
    }
}
